package com.neuronbit.businessflow.flow.source;

import com.neuronbit.businessflow.flow.source.util.SourceContext;
import com.neuronbit.businessflow.intellij.model.Node;
import com.neuronbit.javaparser.ast.stmt.BlockStmt;

/**
 * The type Conditional step java source.
 */
public abstract class ConditionalStepJavaSource extends StepJavaSource {
    /**
     * Instantiates a new Abstract node source generator.
     *
     * @param node          the node
     * @param sourceContext the source context
     */
    public ConditionalStepJavaSource(Node node, SourceContext sourceContext) {
        super(node, sourceContext);
    }

    protected void afterStepCallStmt(BlockStmt stepCallStmt, BlockStmt methodBody) {
        //Switch, Fork, Decision Node
        processExceptionHandler(stepCallStmt, methodBody);
        //stepCallStmt.getStatements().forEach(methodBody::addStatement);
    }
}
